package org.wanda.pv.model.business;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.nutz.dao.entity.annotation.*;
import org.wanda.pv.framework.base.BaseModel;

@Table("wd_attachment")
public class Attachment extends BaseModel{

    @Id
    @Prev(els = {@EL("$me.idGen()")})
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Column("server_path")
    @ColDefine(type = ColType.VARCHAR, notNull = true,width = 500)
    @Comment("服务器路径")
    private String serverPath;




    @Column("ex_name")
    @ColDefine(type = ColType.VARCHAR, notNull = true,width = 100)
    @Comment("文件扩展名")
    private String exName;

    @Column
    private String name;

    @Column("mark_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long markId;

    @Column("project_info_id")
    private String projectInfoId;


    @Comment("MARK:标注附件|REVIEW:评审会附件")
    @Column
    private String type;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getServerPath() {
        return serverPath;
    }

    public void setServerPath(String serverPath) {
        this.serverPath = serverPath;
    }

    public String getExName() {
        return exName;
    }

    public void setExName(String exName) {
        this.exName = exName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getMarkId() {
        return markId;
    }

    public void setMarkId(Long markId) {
        this.markId = markId;
    }

    public String getProjectInfoId() {
        return projectInfoId;
    }

    public void setProjectInfoId(String projectInfoId) {
        this.projectInfoId = projectInfoId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
